﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DirectDataSource.aspx.cs" Inherits="DirectDataSource" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" 
    SelectMethod="Select" TypeName="ProductCategoryDataObject" 
    UpdateMethod="Update">
    <DeleteParameters>
        <asp:Parameter Name="categoryId" Type="Int32" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:Parameter Name="original_ProductCategoryID" Type="Int32" />
        <asp:Parameter Name="name" Type="String" />
    </UpdateParameters>
</asp:ObjectDataSource>
    </div>
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
    <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">LinkButton</asp:LinkButton>
    </form>
</body>
</html>
